package exercise2;

import java.util.Scanner;

public class Exercise02_22 {
    public static void main(String []args)
    {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入金额： ");
        String money=input.nextLine();
        int point_position=money.indexOf(".");
        String dollar=money.substring(0,point_position);
        String cent=money.substring(point_position+1,money.length());
        System.out.println("总计"+dollar+" dollars, "+cent+" cents. ");
    }
}
